<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0022)https://www.myzte.com/ -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <head>
    <title>中兴手机商城-提供中兴官方正品智能手机(中兴天机7、AXON系列、Blade系列、远航系列)、SPRO2智能投影仪、配件等中兴终端产品</title>
    <meta name="keywords" content="ZTE手机,AXON天机7、远航、A910、中兴手机,中兴手机官方商城,中兴官网,中兴AXON7,星星2号,GrandS天机">
    <meta name="description" content="ZTE中兴手机商城是中兴通讯旗下手机等终端产品的电子商务官方网站，提供中兴官方正品智能手机(中兴天机7、AXON系列、Blade系列、远航系列)、SPRO2智能投影仪、配件等中兴终端产品，官方品质保证！">
    <meta property="qc:admins" content="254072226776512456375">
    <meta property="wb:webmaster" content="e7bfc2e53f06554b">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta property="wb:webmaster" content="df14863f24f089b7">
    <script src="/Public/template/js/hm.js"></script><script src="/Public/template/js/hm.js"></script><script src="/Public/template/js/compatible.js"></script>
    <link href="/Public/bootstrap/js/bootstrap.min.css" rel="stylesheet" type="text/css">
    <script src="/Public/template/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/Public/template/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
    <script src="/Public/template/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/Public/template/js/public.js"></script>
    <link rel="stylesheet" href="/Public/template/style/theme.css">
    <link rel="stylesheet" href="/Public/template/style/style.css">
    <link rel="stylesheet" href="/Public/template/style/public.css">
        <link rel="stylesheet" href="/Public/template/style/shop.css">
    </head>
<body class="index-body">
<!-- 顶部导航 start -->
<header>
    <div class="containers">
        <nav class="navbar navbar-inverse">
            <ul class="nav navbar-nav left-navbar clearfix">
                <li class=""><a href="https://www.myzte.com/zx-campus.html">中兴校园</a></li>
                <li><a href="https://www.myzte.com/help-11.html">帮助中心</a></li>
                <!-- <li><a href="/">活动列表</a></li> -->
                <li><a class="no-border" href="javascript:;">全年无休热线:400-880-9999</a></li>
            </ul>
            <ul class="nav navbar-nav top-tools navbar-right right-navbar">
                <li class="is-login" id="loginInfo">

                </li>
                <!-- <li class=""><a class="no-border" href="http://old.myzte.com">旧版入口</a></li> -->
            </ul>
        </nav>
    </div>
</header>
<div class="search-block">
    <div class="logo">
        <a href="<?php echo U('Index/index');?>"><img src="/Public/template/images/zx-logo.png" alt=""></a>
    </div>
    <div class="shop-cart">
        <a href="<?php echo U('Cart/lst');?>" class="shopcart-logo" id="cart_list">
            <img src="/Public/template/images/shopcart.png" alt="">&nbsp;&nbsp;&nbsp;购物车
            <span class="shopcart-number cart-count hidden" id="count"></span>
        </a>
        <div class="shopcart-null cart-content"  id="cart_div_list" style="display: none;">
            <div class="remind">
                购物车中还没有商品,快快选购吧!
                <img src="/Public/template/images/smile.png" alt="">
            </div>
        </div>

    </div>
    <!-- 搜索 -->
    <div class="search">
        <div class="search-icon">
            <div class="input-block">
                <form  name="search" method="get" class="fl">
                    <input type="text" id="key" name="key" placeholder="搜索您需要的商品">
                </form>
            </div>
            <div class="button-block">
                <button type="button" data-action="/list.html?"
                        onclick="location.href='<?php echo U('Search/key_search', '',FALSE); ?>/key/'+$('#key').val();">
                    <img src="/Public/template/images/Search.png" alt="">
                </button>
            </div>
        </div>
    </div>
</div>
<!-- 顶部导航 end -->
<?php if($_show_nav==1): ?>

<!-- 头部 start -->
<div class="header w1210 bc mt15">
    <script>
        $(function(){
            $("#input_keyword").focus(function(){
                $(this).addClass('search-focus');
                $(document).keydown(function(event){
                    if(event.keyCode==13){
                        if($(".search-focus").val()){
                            window.location.href=window.location.protocol+'//'+window.location.host+'/list.html?'+'keyword='+$('#input_keyword').val();
                        }
                    }
                });
            });
            $("#input_keyword").blur(function(){
                $(this).removeClass('search-focus');
            });
        });
    </script>
    <div class="classify-block">
        <div class="classify">
            <ul class="list-unstyled all-goods-type clearfix" style="height: 40px">
                <li class="pull-left all-categories" style="height: 40px">
                    <span class="text-left">全部商品分类</span>
                    <img src="/Public/template/images/fenlei_icon.png" alt="" class="pull-right">
                    <ul class="list-unstyled all-categories-detail">
                        <?php foreach($catData as $k => $v):?>
                        <li class="fl-hover">
                            <h4>
                                <a href="https://www.myzte.com/list.html?cat_id=1"><?php echo ($v["cate_name"]); ?></a>
                            </h4>
                            <div class="more-goods-block clearfix fl-one">
                                <div class="goods-block">
                                    <ul class="list-unstyled clearfix">
                                        <?php foreach($v['children'] as $k1 => $v1):?>
                                        <li class="pull-left goods-deatil-li">
                                            <div class="goods-image">
                                                <?php echo showImage($sm_logo[0]);?>
                                            </div>
                                            <div class="goods-name">
                                                <a href="<?php echo U('Search/cat_search?cat_id='.$v1['id'],'',FALSE)?>"><span><?php echo $v1['cate_name']?></span></a>
                                            </div>
                                        </li>
                                        <?php endforeach;?>
                                    </ul>
                                </div>
                                <div class="recommend-goods hide">
                                    <div class="recommend-goods-block">
                                        <a href="https://www.myzte.com/cart-blank.html">
                                            <img src="/Public/template/images/goods1.png" alt="">
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <?php endforeach;?>
                        <textarea id="first" class="hide">
</textarea>
                        <script>
                            $(function(){
                                /**
                                 * 模板填充工具
                                 */
                                var substitute = function(str, obj) {
                                    return str.replace(/\\?\{([^{}]+)\}/g, function(match, name) {
                                        if (match.charAt(0) == '\\') return match.slice(1);
                                        if(name.match(/\./)){
                                            value = eval('obj.'+name);
                                            return value?value:'';
                                        }
                                        return (obj[name] != undefined) ? obj[name] : '';
                                    });
                                };

                                $('.all-categories-detail .fl-hover').each(function(){
                                    var secondcate_len = $(this).find('.goods-deatil-li').length;
                                    if(secondcate_len>=11){
                                        $(this).find('.goods-deatil-li:nth-child(n+10)').hide();
                                        $(this).find('.goods-look-all').show();
                                    }
                                })
                            })
                        </script>
                    </ul>
                </li>
                <li class="pull-left">
                    <a href="https://www.myzte.com/index.html">首页</a>
                </li><li class="pull-left create-fl">
                <a href="https://www.myzte.com/v8.html">Blade V8</a>
                <s style="position: absolute;top: -10px;line-height: 1.2;"><img src="/Public/template/images/new.png" alt="new"></s>

            </li>

                <li class="pull-left create-fl">
                    <a href="https://www.myzte.com/6902176008580.html">天机7 MAX</a>
                    <s style="position: absolute;top: -10px;line-height: 1.2;"><img src="/Public/template/images/hot.png" alt="hot"></s>

                </li>

                <li class="pull-left create-fl">
                    <a href="https://www.myzte.com/6902176000645.html">天机7</a>
                    <s style="position: absolute;top: -10px;line-height: 1.2;"><img src="/Public/template/images/hot.png" alt="hot"></s>
                </li>

                <li class="pull-left create-fl"><a href="https://www.myzte.com/6902176003141.html">Blade系列</a>
                    <div class="fenlei-detail-block">
                        <div class="fenlei-detail">
                            <ul class="list-unstyled fenlei-two clearfix">
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176003141.html" target="_blank">
                                        <div class="goods-img" style="border-left: none;">
                                            <img src="/Public/template/images/33a4865f7219.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>Blade A2</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span class="new-pri">￥<strong>669.0</strong></span>

                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176009532.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/243509c98820.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>Blade A2 Plus</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span class="new-pri">￥<strong>869.0</strong></span>

                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/v8.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/7bb917a907a0.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>Blade V8</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span class="new-pri">￥<strong>1469.0</strong></span>

                                            </div>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>

                </li>
                <li class="pull-left create-fl" id="cate-jxpj">
                    <a href="https://www.myzte.com/list.html?cat_id=2">ZTE精品系列</a>


                    <div class="fenlei-detail-block">
                        <div class="fenlei-detail">
                            <ul class="list-unstyled fenlei-two clearfix">
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176002823.html" target="_blank">
                                        <div class="goods-img" style="border-left: none;">
                                            <img src="/Public/template/images/116bc2b6c266.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>中兴 V7 MAX(全网通)</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span>￥<strong>1799.0</strong></span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176002793.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/1fbc59cd878f.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>中兴 A910</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span>￥<strong>1299.0</strong></span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6934933095359.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/8652332ef46a.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>中兴 Spro 2 LTE 智能微投</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span>￥<strong>4699.0</strong></span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </li>

                <li class="pull-left crceate-fl"><a href="http://www.myzte.cn/">中兴社区</a></li>
                <li class="pull-right news-li">
                    <div class="news-block clearfix">
                        <div id="newsBox">
                            <ul><li><a href="https://www.myzte.com/p-97.html">【公告】ZTE中兴 Blade V8预约活动开奖！</a></li><li><a href="https://www.myzte.com/p-96.html">春节期间发货时间调整公告</a></li><li><a href="https://www.myzte.com/p-92.html">关于中兴手机商城12月28日系统升级公告</a></li></ul>

                            <ul><li><a href="https://www.myzte.com/p-97.html">【公告】ZTE中兴 Blade V8预约活动开奖！</a></li><li><a href="https://www.myzte.com/p-96.html">春节期间发货时间调整公告</a></li><li><a href="https://www.myzte.com/p-92.html">关于中兴手机商城12月28日系统升级公告</a></li></ul>
                        </div>
                        <div class="news-name"><img src="/Public/template/images/horn.png" alt=""></div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    <?php $ic=C('IMAGE_CONFIG');?>
    var picView ="<?php echo $ic['viewPath']?>";
    $("#cart_list").mouseover(function () {
        $.ajax({
            type:'GET',
            url:"<?php echo U('Cart/ajaxCartList')?>",
            dataType:'json',
            success:function (data) {
                var a = 0;
                html ="<ul class='list-unstyled'>";
                $(data).each(function (k,v) {
                    html +='<li class="clearfix shopcart-goods-li" id="cart" value="'+v.goods_id+ '-'+v.goods_attr_id+'"><div style="float: left;" class="shopcart-goods-image">' +
                            '<img width="50" src="'+picView+v.mid_logo+'" /> ' +
                            '</div>';
                    html +='<div style="float: left;" class="shopcart-goods-name">' +
                            '<p>'+ v.goods_name+'</p>' +
                            '</div>';
                    html +='<div style="float: left;margin-left: 20px;" class="shopcart-goods-price">' +
                            '<div style="float: left";> ￥'+v.price+'</div>' +
                            '<div style="float: left";>' +
                        '<a info-data="' + v.goods_id + '-' + v.goods_attr_id + '" onclick="delCart( this )" href="javascript:void(0); ">删除</a>'+
                            '</div></div></li>';
                    a++

                });
                html +="</ul>";
                if(a>0){
                    $('#cart_div_list').html(html);
                }else{
                    $('#cart_div_list').css('display','block');
                }

            }
        });
    });
    //var count =0;
    $(function () {
         /*count = $('.list-unstyled').children.length;
        if(count > 0){
            $('#count').removeClass('hidden').html(count);
        }*/
        $.ajax({
            type:'GET',
            url:"<?php echo U('Cart/ajaxCartList')?>",
            dataType:'json',
            success:function (data) {
                var i = 0;
                $(data).each(function (k,v) {
                    i++;
                });
                if(i>0){
                    $('#count').removeClass('hidden').html(i);
                }
            }
        });
    });
    function delCart( a ){
        var info = $(a).attr('info-data');
        $.ajax({
            type:'GET',
            url:"<?php echo U('Cart/ajaxDelCart');?>",
            data:"id="+info,
            dataType:'json',
            success:function (data) {
                if(data.code==1){
                    $("li[value='+ info +']").remove();
                }
            }
        });
    }
    //购物车数量加载
    var cart_count=null;
    var cart_count_get=false;
    $.get("<?php echo U('Cart/ajaxDelCart')?>")
        .done(function(re){
            if(re.data&&re.data.count>0){
                $('.cart-count').removeClass('hidden').text(re.data.count);
                cart_count=re.data.count;
                $('.shop-cart').find('.shopcart-null').remove();
            }else{
                $('.shop-cart').find('.shopcart-full').remove();
            }
        })
        .fail(function(){
            $('.shop-cart').find('.shopcart-full').remove();
        })
        .always(function(){
            cart_count_get=true;
        })
    //购物车项
    var cart_load_twice=0;
    $('.shop-cart').on('mouseenter',function(e){
        if(cart_count_get){
            if(cart_count){
                if(cart_load_twice===0){
                    cart_load_twice=1;
                    $.ajax({
                        url:'https://www.myzte.com/index.php/openapi/cart/preview',
                        dataType:'json'
                    })
                        .done(function(re){
                            if(re.data && re.data.length){
                                var item_html ='',item_html_tpl = $('#minicart_item_tpl').html();
                                $.each(re.data,function(idx,item){
                                    item_html+=substitute(item_html_tpl,item);
                                });
                                $('.shopcart-full').show().find('ul').html(item_html);
                                $('.shop-cart').find('.shopcart-logo').addClass('active');
                            }
                        });
                }else{
                    $(this).find('.shopcart-logo').addClass('active');
                    $('.cart-content').show();
                }
            }else{
                $(this).find('.shopcart-logo').addClass('active');
                $('.cart-content').show();
            }
        }
    });
    $('.shop-cart').on('mouseleave',function(){
        $('.cart-content').hide();
        $(this).find('.shopcart-logo').removeClass('active');
    });
</script>
<?php endif;?>

<!-- 头部 start -->
<div class="header w1210 bc mt15">
    <script>
        $(function(){
            $("#input_keyword").focus(function(){
                $(this).addClass('search-focus');
                $(document).keydown(function(event){
                    if(event.keyCode==13){
                        if($(".search-focus").val()){
                            window.location.href=window.location.protocol+'//'+window.location.host+'/list.html?'+'keyword='+$('#input_keyword').val();
                        }
                    }
                });
            });
            $("#input_keyword").blur(function(){
                $(this).removeClass('search-focus');
            });
        });
    </script>
    <div class="classify-block">
        <div class="classify">
            <ul class="list-unstyled all-goods-type clearfix" style="height: 40px">
                <li class="pull-left all-categories" style="height: 40px">
                    <span class="text-left">全部商品分类</span>
                    <img src="/Public/template/images/fenlei_icon.png" alt="" class="pull-right">
                    <ul class="list-unstyled all-categories-detail">
                        <?php foreach($catData as $k => $v):?>
                        <li class="fl-hover">
                            <h4>
                                <a href="https://www.myzte.com/list.html?cat_id=1"><?php echo ($v["cate_name"]); ?></a>
                            </h4>
                            <div class="more-goods-block clearfix fl-one">
                                <div class="goods-block">
                                    <ul class="list-unstyled clearfix">
                                        <?php foreach($v['children'] as $k1 => $v1):?>
                                        <li class="pull-left goods-deatil-li">
                                            <div class="goods-image">
                                                <?php echo showImage($sm_logo[0]);?>
                                            </div>
                                            <div class="goods-name">
                                                <a href="<?php echo U('Search/cat_search?cat_id='.$v1['id'],'',FALSE)?>"><span><?php echo $v1['cate_name']?></span></a>
                                            </div>
                                        </li>
                                        <?php endforeach;?>
                                    </ul>
                                </div>
                                <div class="recommend-goods hide">
                                    <div class="recommend-goods-block">
                                        <a href="https://www.myzte.com/cart-blank.html">
                                            <img src="/Public/template/images/goods1.png" alt="">
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </li>
                        <?php endforeach;?>
                        <textarea id="first" class="hide">
</textarea>
                        <script>
                            $(function(){
                                /**
                                 * 模板填充工具
                                 */
                                var substitute = function(str, obj) {
                                    return str.replace(/\\?\{([^{}]+)\}/g, function(match, name) {
                                        if (match.charAt(0) == '\\') return match.slice(1);
                                        if(name.match(/\./)){
                                            value = eval('obj.'+name);
                                            return value?value:'';
                                        }
                                        return (obj[name] != undefined) ? obj[name] : '';
                                    });
                                };

                                $('.all-categories-detail .fl-hover').each(function(){
                                    var secondcate_len = $(this).find('.goods-deatil-li').length;
                                    if(secondcate_len>=11){
                                        $(this).find('.goods-deatil-li:nth-child(n+10)').hide();
                                        $(this).find('.goods-look-all').show();
                                    }
                                })
                            })
                        </script>
                    </ul>
                </li>
                <li class="pull-left">
                    <a href="https://www.myzte.com/index.html">首页</a>
                </li><li class="pull-left create-fl">
                <a href="https://www.myzte.com/v8.html">Blade V8</a>
                <s style="position: absolute;top: -10px;line-height: 1.2;"><img src="/Public/template/images/new.png" alt="new"></s>

            </li>

                <li class="pull-left create-fl">
                    <a href="https://www.myzte.com/6902176008580.html">天机7 MAX</a>
                    <s style="position: absolute;top: -10px;line-height: 1.2;"><img src="/Public/template/images/hot.png" alt="hot"></s>

                </li>

                <li class="pull-left create-fl">
                    <a href="https://www.myzte.com/6902176000645.html">天机7</a>
                    <s style="position: absolute;top: -10px;line-height: 1.2;"><img src="/Public/template/images/hot.png" alt="hot"></s>
                </li>

                <li class="pull-left create-fl"><a href="https://www.myzte.com/6902176003141.html">Blade系列</a>
                    <div class="fenlei-detail-block">
                        <div class="fenlei-detail">
                            <ul class="list-unstyled fenlei-two clearfix">
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176003141.html" target="_blank">
                                        <div class="goods-img" style="border-left: none;">
                                            <img src="/Public/template/images/33a4865f7219.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>Blade A2</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span class="new-pri">￥<strong>669.0</strong></span>

                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176009532.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/243509c98820.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>Blade A2 Plus</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span class="new-pri">￥<strong>869.0</strong></span>

                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/v8.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/7bb917a907a0.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>Blade V8</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span class="new-pri">￥<strong>1469.0</strong></span>

                                            </div>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>

                </li>
                <li class="pull-left create-fl" id="cate-jxpj">
                    <a href="https://www.myzte.com/list.html?cat_id=2">ZTE精品系列</a>


                    <div class="fenlei-detail-block">
                        <div class="fenlei-detail">
                            <ul class="list-unstyled fenlei-two clearfix">
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176002823.html" target="_blank">
                                        <div class="goods-img" style="border-left: none;">
                                            <img src="/Public/template/images/116bc2b6c266.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>中兴 V7 MAX(全网通)</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span>￥<strong>1799.0</strong></span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6902176002793.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/1fbc59cd878f.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>中兴 A910</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span>￥<strong>1299.0</strong></span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="pull-left">
                                    <a href="https://www.myzte.com/6934933095359.html" target="_blank">
                                        <div class="goods-img">
                                            <img src="/Public/template/images/8652332ef46a.jpg!s" alt="">
                                        </div>
                                        <div class="goods-data">
                                            <div class="goods-name-block">
                                                <span>中兴 Spro 2 LTE 智能微投</span>
                                            </div>
                                            <div class="goods-pri-block">
                                                <span>￥<strong>4699.0</strong></span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </li>

                <li class="pull-left crceate-fl"><a href="http://www.myzte.cn/">中兴社区</a></li>
                <li class="pull-right news-li">
                    <div class="news-block clearfix">
                        <div id="newsBox">
                            <ul><li><a href="https://www.myzte.com/p-97.html">【公告】ZTE中兴 Blade V8预约活动开奖！</a></li><li><a href="https://www.myzte.com/p-96.html">春节期间发货时间调整公告</a></li><li><a href="https://www.myzte.com/p-92.html">关于中兴手机商城12月28日系统升级公告</a></li></ul>

                            <ul><li><a href="https://www.myzte.com/p-97.html">【公告】ZTE中兴 Blade V8预约活动开奖！</a></li><li><a href="https://www.myzte.com/p-96.html">春节期间发货时间调整公告</a></li><li><a href="https://www.myzte.com/p-92.html">关于中兴手机商城12月28日系统升级公告</a></li></ul>
                        </div>
                        <div class="news-name"><img src="/Public/template/images/horn.png" alt=""></div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    <?php $ic=C('IMAGE_CONFIG');?>
    var picView ="<?php echo $ic['viewPath']?>";
    $("#cart_list").mouseover(function () {
        $.ajax({
            type:'GET',
            url:"<?php echo U('Cart/ajaxCartList')?>",
            dataType:'json',
            success:function (data) {
                var a = 0;
                html ="<ul class='list-unstyled'>";
                $(data).each(function (k,v) {
                    html +='<li class="clearfix shopcart-goods-li" id="cart" value="'+v.goods_id+ '-'+v.goods_attr_id+'"><div style="float: left;" class="shopcart-goods-image">' +
                            '<img width="50" src="'+picView+v.mid_logo+'" /> ' +
                            '</div>';
                    html +='<div style="float: left;" class="shopcart-goods-name">' +
                            '<p>'+ v.goods_name+'</p>' +
                            '</div>';
                    html +='<div style="float: left;margin-left: 20px;" class="shopcart-goods-price">' +
                            '<div style="float: left";> ￥'+v.price+'</div>' +
                            '<div style="float: left";>' +
                        '<a info-data="' + v.goods_id + '-' + v.goods_attr_id + '" onclick="delCart( this )" href="javascript:void(0); ">删除</a>'+
                            '</div></div></li>';
                    a++

                });
                html +="</ul>";
                if(a>0){
                    $('#cart_div_list').html(html);
                }else{
                    $('#cart_div_list').css('display','block');
                }

            }
        });
    });
    //var count =0;
    $(function () {
         /*count = $('.list-unstyled').children.length;
        if(count > 0){
            $('#count').removeClass('hidden').html(count);
        }*/
        $.ajax({
            type:'GET',
            url:"<?php echo U('Cart/ajaxCartList')?>",
            dataType:'json',
            success:function (data) {
                var i = 0;
                $(data).each(function (k,v) {
                    i++;
                });
                if(i>0){
                    $('#count').removeClass('hidden').html(i);
                }
            }
        });
    });
    function delCart( a ){
        var info = $(a).attr('info-data');
        $.ajax({
            type:'GET',
            url:"<?php echo U('Cart/ajaxDelCart');?>",
            data:"id="+info,
            dataType:'json',
            success:function (data) {
                if(data.code==1){
                    $("li[value='+ info +']").remove();
                }
            }
        });
    }
    //购物车数量加载
    var cart_count=null;
    var cart_count_get=false;
    $.get("<?php echo U('Cart/ajaxDelCart')?>")
        .done(function(re){
            if(re.data&&re.data.count>0){
                $('.cart-count').removeClass('hidden').text(re.data.count);
                cart_count=re.data.count;
                $('.shop-cart').find('.shopcart-null').remove();
            }else{
                $('.shop-cart').find('.shopcart-full').remove();
            }
        })
        .fail(function(){
            $('.shop-cart').find('.shopcart-full').remove();
        })
        .always(function(){
            cart_count_get=true;
        })
    //购物车项
    var cart_load_twice=0;
    $('.shop-cart').on('mouseenter',function(e){
        if(cart_count_get){
            if(cart_count){
                if(cart_load_twice===0){
                    cart_load_twice=1;
                    $.ajax({
                        url:'https://www.myzte.com/index.php/openapi/cart/preview',
                        dataType:'json'
                    })
                        .done(function(re){
                            if(re.data && re.data.length){
                                var item_html ='',item_html_tpl = $('#minicart_item_tpl').html();
                                $.each(re.data,function(idx,item){
                                    item_html+=substitute(item_html_tpl,item);
                                });
                                $('.shopcart-full').show().find('ul').html(item_html);
                                $('.shop-cart').find('.shopcart-logo').addClass('active');
                            }
                        });
                }else{
                    $(this).find('.shopcart-logo').addClass('active');
                    $('.cart-content').show();
                }
            }else{
                $(this).find('.shopcart-logo').addClass('active');
                $('.cart-content').show();
            }
        }
    });
    $('.shop-cart').on('mouseleave',function(){
        $('.cart-content').hide();
        $(this).find('.shopcart-logo').removeClass('active');
    });
</script>
<script charset="utf-8">
    $(function(){
        /**
         * 模板填充工具
         */
        var substitute = function(str, obj) {
            return str.replace(/\\?\{([^{}]+)\}/g, function(match, name) {
                if (match.charAt(0) == '\\') return match.slice(1);
                return (obj[name] != undefined) ? obj[name] : '';
            });
        };
        /**
         * 登录\注册切换
         */
        if($.cookie('UNAME') && $.cookie('MEMBER_IDENT')){
            $('.top-tools .is-unlogin').addClass('hidden');
            $('.top-tools .is-login').removeClass('hidden');
            $('.top-tools .is-login .uname').text($.cookie('UNAME'));
            if('6' == $.cookie('MEMBER_LEVEL_ID')){
                $('.top-tools .zter').removeClass('hidden');
            }
        }
        /**
         * 迷你购物车
         */
            //购物车数量加载
        var cart_count=null;
        var cart_count_get=false;
        $.get('https://www.myzte.com/index.php/openapi/cart/count')
            .done(function(re){
                if(re.data&&re.data.count>0){
                    $('.cart-count').removeClass('hidden').text(re.data.count);
                    cart_count=re.data.count;
                    $('.shop-cart').find('.shopcart-null').remove();
                }else{
                    $('.shop-cart').find('.shopcart-full').remove();
                }
            })
            .fail(function(){
                $('.shop-cart').find('.shopcart-full').remove();
            })
            .always(function(){
                cart_count_get=true;
            })
        //购物车项
        var cart_load_twice=0;
        $('.shop-cart').on('mouseenter',function(e){
            if(cart_count_get){
                if(cart_count){
                    if(cart_load_twice===0){
                        cart_load_twice=1;
                        $.ajax({
                            url:'https://www.myzte.com/index.php/openapi/cart/preview',
                            dataType:'json'
                        })
                            .done(function(re){
                                if(re.data && re.data.length){
                                    var item_html ='',item_html_tpl = $('#minicart_item_tpl').html();
                                    $.each(re.data,function(idx,item){
                                        item_html+=substitute(item_html_tpl,item);
                                    });
                                    $('.shopcart-full').show().find('ul').html(item_html);
                                    $('.shop-cart').find('.shopcart-logo').addClass('active');
                                }
                            });
                    }else{
                        $(this).find('.shopcart-logo').addClass('active');
                        $('.cart-content').show();
                    }
                }else{
                    $(this).find('.shopcart-logo').addClass('active');
                    $('.cart-content').show();
                }
            }
        });
        $('.shop-cart').on('mouseleave',function(){
            $('.cart-content').hide();
            $(this).find('.shopcart-logo').removeClass('active');
        });
        //购物车快速删除
        $('.shop-cart').on('click','.cart-remove',function(e){
            var cr_btn = $(this);
            $.get(cr_btn.attr('href'));
            cr_btn.parents('.shopcart-goods-li').remove();
            if($('.shop-cart').find('.shopcart-full ul li.shopcart-goods-li').length===0){
                $('.shop-cart').find('.shopcart-full').remove();
            }
            return false;
        });
    });
</script>

<script type="text/javascript">
    $(document).ready(function(){
        $('.all-categories').add('.all-categories-detail').on({
            mouseover:function(){
                $('.all-categories-detail').show();
            },
            mouseout:function(){
                $('.all-categories-detail').hide();
            }
        });
        $('.fenlei-two li:nth-child(6n+1)').find('.goods-img').css('border-left','none');
    });
</script>
<script>
    $(function(){
        $(".is-login").hover(function() {
            $(".dropdown-menu").css('display', 'inline-block');
        }, function() {
            $(".dropdown-menu").css('display', 'none');
        });
    })
    //获取地址栏参数
    $(function(){
        var urlParam= decodeURIComponent(window.location.search);
        //alert(urlParam);
        if (urlParam.indexOf('?keyword=') != -1) {

            if (urlParam.indexOf('&') == -1) {
                var loc = urlParam.substring(urlParam.indexOf('=') + 1);

            }else{
                var end = urlParam.indexOf('&');
                var loc = urlParam.substring(urlParam.indexOf('=') + 1, end);
            }
            if (loc != '') {
                $(".fast-search").addClass('hide');
                $("#input_keyword").val(loc);
            }else{
                $(".fast-search").removeClass('hide');
            }
        };
    })
</script>
<script>
    (function(){
        $.getJSON("https://www.myzte.com/index.php/openapi/content_node/articles/node_id/35",'',function(re){
            if(re.result=='success' && re.data.length>0){
                var length = re.data.length > 3?3:re.data.length;
                var html = '';
                for(var i=0;i < length;i++){
                    html+= '<li><a href="'+re.data[i].link+'">'+re.data[i].title+'</a></li>';
                }
                $('#newsBox ul').html(html);
            }
        });
        /*新闻向上无缝滚动*/
        var area = document.getElementById('newsBox');
        var liHeight = 24; //单行滚动高度
        var speed = 50; //滚动速度
        var time;
        var delay = 2000; //滚动间隔时间
        area.scrollTop = 0;
        area.innerHTML += area.innerHTML; //新闻列表克隆
        function scrollUp(){
            if (area.scrollTop % liHeight == 0) {
                clearInterval(time);
                setTimeout(startScroll,delay);
            }else{
                area.scrollTop++;
                if (area.scrollTop >= area.scrollHeight/2) {
                    /*当第一个ul向上滚动到滚动区域顶端,重置为0*/
                    area.scrollTop = 0;
                };
            }
        }
        function startScroll(){
            time = setInterval(scrollUp,speed);
            area.scrollTop++;
        }
        setTimeout(startScroll,delay);
    })();
</script>
<div class="container main-container">
    <!--兼容版商品详情-->
    <div class="product-container" id="compatible_version">
        <div class="bread">
            <ol class="breadcrumb">
                <li><a href="<?php echo U('Index/index');?>">首页</a></li>
                <?php
 $count =count($catPath); for($i=$count-1;$i>=0;$i--): ?>
                <li><a href="<?php echo U('Search/cat_search?cat_id='.$v1['id'],'',FALSE)?>">
                    <?php echo $catPath[$i]['cate_name']?>
                </a>
                </li>
                <?php endfor ?>
                <li class="active"> <?php echo $info['goods_name']?></li>
            </ol>
        </div>
        <div class="product-page">
            <div class="row goods-block">
                <div class="col-xs-6 img-block">
                    <div class="product-main-image" style="position: relative; overflow: hidden;">
                        <a href="<?php echo $viewPath . $info['mid_logo'];?>" target="_blank">
                            <?php echo showImage($info['mid_logo']) ?>
                        </a>
                        <img src="<?php echo $viewPath . $info['mid_logo'];?>" class="zoomImg" style="position: absolute; top: -86px; left: -255.5px; opacity: 1; width: 800px; height: 800px; border: none; max-width: none; max-height: none;">
                    </div>

                    <div class="pic-slide">
                        <div class="prev">
                            <img height="50" src="/Public/template/images/left-1.png">
                        </div>
                        <!--底部小图-->
                        <div class="pic-list">
                            <ul class="product-other-images list-inline">
                                <?php foreach($gpData as $k => $v): ?>
                                <li <?php if ($k==0):?>class="current" <?php endif;?>>
                                    <a href="<?php echo $viewPath . $v['mid_pic'];?>" data-middlesrc="<?php echo $viewPath . $v['mid_pic']?>" target="_blank">
                                        <?php echo showImage($v['sm_pic'])?>
                                    </a>
                                    <span class="pointer"></span>
                                </li>
                                <?php endforeach;?>
                            </ul>
                        </div>
                        <div class="next">
                            <img height="50" src="/Public/template/images/right-1.png">
                        </div>
                    </div>
                </div>
                <div class="col-xs-6 goods-detail-block">
                    <h1>
                     <span>商品编号</span>
                        <?php echo ($info["id"]); ?>
                    </h1>
                    <h1>
                        <?php echo ($info["goods_name"]); ?>
                    </h1>
                    <!-- <p class="avg-mark">
                        <span class="text-warning">☆☆☆☆☆</span> <small>0.0</small>
                    </p> -->
                    <div class="price-availability-block clearfix">
                    <span class="price text-danger">
                        <small>原价：￥</small><del><?php echo ($info["market_price"]); ?></del>
                    </span>
                        <br/>
                    <span class="price text-danger">
                        <small>本店价￥</small><strong><?php echo ($info["shop_price"]); ?></strong>
                    </span>
                        <br/>
                        <span class="price text-danger">
                        会员价格：
                        </span>
                        <p>
                        <table border="1" cellpadding="5" cellspacing="5" width="30%">
                            <?php foreach($mpData as $k =>$v):?>
                            <tr>
                                <td><?php echo ($v["level_name"]); ?></td>
                                <td>￥<?php echo ($v["price"]); ?>元</td>
                            </tr>
                            <?php endforeach?>
                        </table>
                        </p>
                    </div>
                    <hr style="margin-bottom: 8px;">
                    <div class="sales-promotion-block" style="display:none">
                        <dl class="dl-horizontal">
                            <label>促销详情<span style=""></span></label>
                            <span class="fl" style="padding-top:6px">:</span>
                            <ul class="list-unstyled promotion-list">
                            </ul>
                        </dl>
                    </div>
                    <form action="<?php echo U('Cart/add');?>" id="subform" method="post">
                        <input type="hidden" name="goods_id" value="<?php echo ($info["id"]); ?>"/>
                    <!-- 规格选择器 -->
                    <div class="product-spec-options">
                        <dl class="dl-horizontal" style="overflow: hidden;">
                            <!-- <dt>颜色 : </dt> -->
                            <?php foreach($mulArr as $k=>$v):?>
                            <div class="opt-inner">
                                <label style="margin-top: 2px;"><?php echo ($k); ?><span></span></label>
                                <span class="fl" style="margin-top: 2px;">:</span>
                                <dd class="fl">
                                    <ul class="list-inline ps-opt-sel">
                                        <li class="current ">
                                            <span style="width: auto; height: 22px; line-height: 22px; padding: 0px 5px;">华尔金</span>
                                        </li>
                                    </ul>
                                </dd>
                            </div>
                            <?php endforeach?>
                        </dl>
                    </div>
                    <!-- 中兴服务  -->
                    <!--合约机 -->
                    <!-- 合约机-->
                    <!--购买区-->
                    <div class="product-page-cart product-buy">
                        <div class="product-quantity input-group hide" style="width:150px;" data-minibuy="">
                            <div class="spinner-buttons input-group-btn">
                                <button type="button" class="btn btn-default">
                                    -
                                </button>
                            </div>
                            <input type="text" class="spinner-input form-control" value="1" data-maxbuy="19">
                            <div class="spinner-buttons input-group-btn">
                                <button type="button" class="btn btn-default">
                                    +
                                </button>
                            </div>
                        </div>
                        <a class="btn btn-danger btn-lg btn-buy" href="javascript:void(0)" name="submit" onclick="document.getElementById('subform').submit();return false">加入购物车</a>
                        <a class="btn btn-success btn-lg btn-buy" href="https://www.myzte.com/cart-fastbuy-2095-1.html">立即购买</a>
                        <a href="javascript:;" id="QR_code_buy">
                            <img src="/Public/template/images/ewm.png" alt="">
                            扫码购买
                            <div class="ewm-img-block">
                                <img src="/Public/template/images/5" class="x-qrcode">                        </div>
                        </a>
                        <a class="btn btn-link btn-lg favorite-button" href="https://www.myzte.com/my-favorite-add-1909.html">
                            <img src="/Public/template/images/heart_state1.png" alt="">
                            <small>喜欢<em> (178)</em></small>
                        </a>
                    </div>
                    </form>
                    <!--购买区end-->
                    <!-- <div class="number-block">
                        <ul class="list-unstyled clearfix">
                            <li class="pull-left">
                                <img src="../themes/pc/zhongxing/images/3454.png?vea39" alt="">
                                评价 3257                        </li>
                            <li class="pull-left">
                                <img src="../themes/pc/zhongxing/images/problem.png?vea39" alt="">
                                提问 <span class="consult-number">0</span>
                            </li>
                            <li class="pull-left">
                                <img src="../themes/pc/zhongxing/images/manyidu.png?vea39" alt="">
                                好评度<small>
                                98%
                                                            </small>
                            </li>

                        </ul>
                        <div class="more-goods">
                            <a href="/list.html?cat_id=96">
                                <img src="../themes/pc/zhongxing/images/3454.png?vea39" alt=""> 查看更多天机系列                        </a>
                        </div>
                    </div> -->
                </div>
            </div>
            <div class="row goods-introduce">
                <div class="col-xs-12">

                    <div class="product-page-content">
                        <div class="hot-goods">
                            <div class="hot-title">热销商品排行</div>
                            <ul class="list-unstyled clearfix hotsail-list"><li><div class="hot-goods-img"><a href="https://www.myzte.com/6934933095625.html"><img src="/Public/template/images/f20c28b82ac8.jpg!m"></a></div><div class="hot-goods-name"><a href="https://www.myzte.com/6934933095625.html">ZTE中兴 AXON天机 MAX C2016 全网通</a></div><div class="hot-goods-pri">￥2799.0</div></li><li><div class="hot-goods-img"><a href="https://www.myzte.com/6934933090262.html"><img src="/Public/template/images/b137c3fbd14a.jpg!m"></a></div><div class="hot-goods-name"><a href="https://www.myzte.com/6934933090262.html">ZTE中兴 AXON天机 A2015 智汇版（4G全网通）</a></div><div class="hot-goods-pri">￥2899.0</div></li><li><div class="hot-goods-img"><a href="https://www.myzte.com/6934933090279.html"><img src="/Public/template/images/3030a1695040.jpg!m"></a></div><div class="hot-goods-name"><a href="https://www.myzte.com/6934933090279.html">ZTE中兴 AXON天机 A2015 智尊版 （4G全网通）</a></div><div class="hot-goods-pri">￥2999.0</div></li></ul>
                        </div>
                        <div class="clearfix pull-left" style="width:750px">
                            <ul id="pp_tabs" class="nav nav-tabs">
                                <li class="active"><a href="https://www.myzte.com/6902176008580.html#desc" data-toggle="tab">产品介绍</a></li>
                                <li><a href="https://www.myzte.com/6902176008580.html#parameter" data-toggle="tab">规格参数</a></li>
                                <li><a href="https://www.myzte.com/6902176008580.html#comment" data-toggle="tab">用户评论 (3257)</a></li>
                                <li><a href="https://www.myzte.com/6902176008580.html#question" data-toggle="tab">产品咨询</a></li>
                                <li><a href="http://www.myzte.cn/forum-1203-1.html">讨论区</a></li>
                            </ul>
                            <div class="tab-content">
                                <div class="tab-pane fade in active" id="desc">
                                    <div class="description">
                                        <img src="/Public/template/images/8b927fc7624b.jpg">
                                        <img src="/Public/template/images/704a0f51119a.jpg">
                                        <img src="/Public/template/images/a85bf7fc6d37.jpg">
                                        <img src="/Public/template/images/f1c895d689bf.jpg">
                                        <img src="/Public/template/images/d86842ea9ac2.jpg">
                                        <img src="/Public/template/images/2b33ea676583.jpg">
                                        <img src="/Public/template/images/f0f5d04397a6.jpg">
                                        <img src="/Public/template/images/dfd9b07a8374.jpg">
                                        <img src="/Public/template/images/8610b2c8d7db.jpg">
                                        <img src="/Public/template/images/e8f1e83bba9f.jpg">
                                        <img src="/Public/template/images/a30a6690da1a.jpg">
                                        <img src="/Public/template/images/dfa1d052f1c9.jpg">
                                        <img src="/Public/template/images/b6dbbbed7ec6.jpg">
                                        <img src="/Public/template/images/c70bbe520f62.jpg">                                </div>
                                </div>
                                <div class="tab-pane fade" id="parameter">
                                    <!-- 商品参数 -->
                                    <div class="detail-parameter">
                                        <div class="fl para-pic">
                                            <!-- 一张商品正面图 -->
                                            <!-- <img src="//res.myzte.com/3f/d5/d3f465b4d2e1.jpg!m?59539_OW800_OH800"> -->
                                            主体
                                        </div>
                                        <div class="fl para-text">
                                            <ul>
                                                <!-- 循环商品参数 -->
                                                <li>
                                                    <span>商品名称</span>
                                                    ZTE中兴 天机7 MAX(全网通)                                            </li>
                                                <li>
                                                    <span>商品品牌</span>
                                                    ZTE中兴                                            </li>
                                                <li>
                                                    <span>商品分类</span>
                                                    天机系列                                            </li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="row detailparam-info">
                                        <div class="col-xs-6">
                                            <div class="info-warp">
                                                <div class="detail-cate">CPU及操作系统</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">CPU型号:</td>
                                                            <td class="item-value">骁龙625（MSM8953）</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">CPU频率:</td>
                                                            <td class="item-value">2.0GHz</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">CPU核数:</td>
                                                            <td class="item-value">八核</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">操作系统:</td>
                                                            <td class="item-value">Android</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                                <div class="detail-cate">网络</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">4G网络制式:</td>
                                                            <td class="item-value">4G：移动（TD-LTE)；4G：联通(FDD-LTE)；4G：电信(FDD-LTE)；4G：联通(TD-LTE)</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">3G网络制式:</td>
                                                            <td class="item-value">3G：移动(TD-SCDMA)；3G：联通(WCDMA)；3G：电信(CDMA2000)；</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">2G网络制式:</td>
                                                            <td class="item-value">2G：移动联通(GSM)+电信(CDMA)</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                                <div class="detail-cate">存储</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">运行内存（RAM）:</td>
                                                            <td class="item-value">4GB</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">机身内存（ROM）:</td>
                                                            <td class="item-value">64GB</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">存储卡类型:</td>
                                                            <td class="item-value">支持MicroSD（TF）</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">最大支持扩展:</td>
                                                            <td class="item-value">256GB</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                                <div class="detail-cate">显示</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">屏幕尺寸:</td>
                                                            <td class="item-value">6.0英寸</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">屏幕色彩:</td>
                                                            <td class="item-value"></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">屏幕材质:</td>
                                                            <td class="item-value">TFT</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">分辨率:</td>
                                                            <td class="item-value">1920*1080(FHD)</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">触摸屏:</td>
                                                            <td class="item-value">电容屏</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                                <div class="detail-cate">感应器</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">GPS模块:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">重力感应:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">光线感应:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">距离感应:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">电子罗盘:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">陀螺仪:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                                <div class="detail-cate">摄像功能</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">主摄像头:</td>
                                                            <td class="item-value">双1300万像素</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">副摄像头:</td>
                                                            <td class="item-value">1300万像素</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">闪光灯:</td>
                                                            <td class="item-value"></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">其他:</td>
                                                            <td class="item-value">数码变焦；美颜；全景；滤镜；HDR；夜间拍摄</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                                <div class="detail-cate">传输功能</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">WIFI:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">蓝牙:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">WIFI热点:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">OTG:</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">NFC(近场通讯):</td>
                                                            <td class="item-value">支持</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                                <div class="detail-cate">其他</div>
                                                <div class="detail-item">
                                                    <table class="table table-inner">
                                                        <tbody><tr>
                                                            <td class="item-key">SIM卡尺寸:</td>
                                                            <td class="item-value">Nano SIM</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">电池类型:</td>
                                                            <td class="item-value">不可拆卸</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">电池容量（mAh）:</td>
                                                            <td class="item-value">4100</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">数据线:</td>
                                                            <td class="item-value">Type-C</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">耳机接口:</td>
                                                            <td class="item-value">3.5mm</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">机身尺寸（mm）:</td>
                                                            <td class="item-value">157*80.4*8.2</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="item-key">机身材质:</td>
                                                            <td class="item-value">金属后盖</td>
                                                        </tr>
                                                        </tbody></table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="tab-pane fade" id="comment">

                                </div>
                                <div class="tab-pane fade" id="question">
                                    <div class="well question-block">
                                        <div class="consult-search clearfix">
                                            <div class="form-group pull-left">
                                                <!-- <label class="sr-only" for="name">咨询</label> -->
                                                <input type="text" class="form-control" id="keyword" placeholder="请输入你的问题">
                                            </div>
                                            <div class="submit-button pull-left">
                                                <button type="submit" class="btn btn-default">提交问题</button>
                                            </div>
                                        </div>
                                        <h5 class="questions-number">共&nbsp;0&nbsp;个问题</h5>
                                        <div class="consult-block"></div>
                                        <div class="more-questions" style="display: none;">
                                            <a href="javascript:;">查看更多&gt;</a>
                                        </div>
                                    </div>
                                </div>
                                <!-- 你可能感兴趣的商品 -->
                                <div class="goods-rel-items hide">
                                    <h4>你可能感兴趣的商品</h4>
                                    <div class="goodslist-warp">
                                        <a class="control prev"><i class="glyphicon glyphicon-chevron-left"></i></a>
                                        <div class="row glist-container">
                                        </div>
                                        <a class="control next"><i class="glyphicon glyphicon-chevron-right"></i></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--合约机资费套餐模态框-->
    <div class="modal fade bs-example-modal-sm" id="set_meal_modal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    <h4 class="modal-title">选择套餐和资费</h4>
                </div>
                <div class="modal-body">
                    此产品没有合约机套餐
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="question_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                </div>
                <div class="modal-body question-content">
                </div>
                <div class="modal-footer">

                </div>
            </div>
        </div>
    </div>
    <!-- 优惠券模态框 -->
    <div class="modal fade coupons-modal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                </div>
                <div class="modal-body">
                    <div class="coupons-block">
                        <ul class="list-unstyled coupons-list clearfix">
                            <li class="coupons-li"><div class="coupon-outer clearfix"><div class="left-block"><h1>￥800-天机7max</h1><div class="coupons-desc">踏春出游</div><div class="coupons-date">2017.03.24-2017.04.06</div></div><div class="right-block"><a class="coupons" href="https://www.myzte.com/index.php/openapi/cpns/get_cpns/cpns_id/144">领取</a></div></div></li></ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <textarea class="hide" id="related_tpl">    &lt;div class="col-xs-3"&gt;
        &lt;div class="thumbnail goods-item"&gt;
            &lt;div class="gi-image-wrapper"&gt;
                &lt;a href="{product.item_url}"&gt;
                    &lt;img src="{image}" alt="{name}"&gt;
                &lt;/a&gt;
            &lt;/div&gt;
            &lt;div class="caption"&gt;
                &lt;h3 class="g-name"&gt;&lt;a href="{product.item_url}"&gt;{name}&lt;/a&gt;&lt;/h3&gt;
                &lt;ul class="list-inline"&gt;
                    &lt;li class="price-1 text-danger"&gt;&lt;small&gt;￥&lt;/small&gt;{product.buy_price}&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
</textarea>
    <input type="hidden" value="0" name="is_operator">
    <input type="hidden" value="0" name="package_pid">
    <script type="text/javascript" src="/Public/template/js/uv.js"></script>
    <script src="/Public/template/js/jquery.zoom.js" type="text/javascript" charset="utf-8"></script>
    <script charset="utf-8">
        /*
         * 商品详情页脚本
         * @author vmcshop.com
         * @version 1.150620
         */
        $(function(){
            //模板填充
            var substitute = function(str, obj) {
                return str.replace(/\\?\{([^{}]+)\}/g, function(match, name) {
                    if (match.charAt(0) == '\\') return match.slice(1);
                    if(name.match(/\./)){
                        value = eval('obj.'+name);
                        return value?value:'';
                    }
                    return (obj[name] != undefined) ? obj[name] : '';
                });
            };

            //可切换相关商品列表
            var alike_slide = function(){
                var likeitem_len = $('.goods-rel-items .glist-container .col-xs-3').length;
                $('.glist-container .col-xs-3:first-child').addClass('current');
                if(likeitem_len>4){
                    $('.goodslist-warp .next').on("click",function(){
                        if($('.glist-container .col-xs-3:nth-child(4)').hasClass('current')){
                            return false;
                        }else{
                            $('.glist-container').stop().animate({"margin-left":"-230px"},200,function(){
                                $(this).css({"margin-left":"10px"}).find(".col-xs-3:first-child").appendTo(this);
                            });
                        }
                    });
                    $('.goodslist-warp .prev').on("click",function(){
                        if($('.glist-container .col-xs-3:first-child').hasClass('current')){
                            return false;
                        }else{
                            $('.glist-container').find(".col-xs-3:last-child").prependTo('.glist-container').css({"margin-left":"-290px"}).stop().animate({"margin-left":"0px"},200,function(){
                            });
                        }

                    });
                }else{
                    $('.goodslist-warp .control').css("opacity","0");
                }
            }

            //倒计时
            var remaining_time = function (intDiff,show_scope){
                if(!show_scope)return;
                setInterval((function(){
                    var day=0,
                        hour=0,
                        minute=0,
                        second=0;//时间默认值
                    if(intDiff > 0){
                        day = Math.floor(intDiff / (60 * 60 * 24));
                        hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
                        minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
                        second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
                    }
                    if (day <= 9) day = '0' + day;
                    if (hour <= 9) hour = '0' + hour;
                    if (minute <= 9) minute = '0' + minute;
                    if (second <= 9) second = '0' + second;
                    show_scope.find('.day-show').html(day);
                    show_scope.find('.hour-show').html(hour);
                    show_scope.find('.minute-show').html(minute);
                    show_scope.find('.second-show').html(second);
                    intDiff--;
                    return arguments.callee;
                })(), 1000);
            };


            //修改数量时，影响购买按钮数量参数
            $('.product-quantity .spinner-input').on('_change',function(e,cur_val){
                $.each($('.btn-buy'),function(i,a){
                    a.href = a.href.replace(/([\s\S]*?)-([\d]+?)-([\d]+?)\.html/,function(){
                        var args = arguments;
                        return [args[1],args[2],cur_val].join('-')+'.html'
                    });
                });
            }).trigger('_change',[$('.product-quantity .spinner-input').val(),0]);


            //相册切换
            var enter_timer = 0;
            $('.product-other-images a').on('mouseenter',function(e,tout){
                var oli = $(this).closest('li'),middle_src = $(this).attr('data-middlesrc'),big_src=$(this).prop('href');
                if(!middle_src)return;
                clearTimeout(enter_timer);
                enter_timer = setTimeout(function(){
                    $('.product-main-image img').prop('src',middle_src);
                    $('.product-main-image a').prop('href',big_src).parent().zoom({url:big_src});
                    $('.product-other-images li').removeClass('current');
                    oli.addClass('current');
                },tout||500);
            });
            $('.product-other-images a').on('click',function(e){
                clearTimeout(enter_timer);
                $(this).trigger('mouseenter',[1]);
                return false;
            });
            $('.product-main-image a').parent().zoom({url:$('.product-main-image a').prop('href')});


            /**商品 openapi 调用**/
            var goods_id = "1909";

            //商品促销
            var goods_promotions_api = "https://www.myzte.com/index.php/openapi/goods/promotion/goods_id/1909/price/3299";
            $.ajax({
                url:goods_promotions_api ,
                cache:false,
                dataType:"json",
                success:function(recv){
                    var phtml = '';
                    if(recv.result == 'success' && recv.data){
                        //console.log(recv.data.plist);
                        $.each(recv.data.plist,function(idx,p){
                            if (recv.data.plist[idx].gift_info) {
                                var get_goods_lists= '';
                                //console.log(recv.data.plist[idx].gift_info);
                                $.each(recv.data.plist[idx].gift_info, function(index, v) {
                                    get_goods_lists += '<span class="gift_info">'+'<a href="'+v.item_url+'">'+'<img src="'+v.s_image_url+'" alt="'+v.name+'" />'+'</a>'+'</span>';
                                });
                                phtml += '<li data-ruleid="'+p.rule_id+'" data-remaining="'+(p.to_time-p.now)+'"><span class="label label-danger">'+p.tag+'</span>&nbsp;'+'<div class="plist-block">'+get_goods_lists+'</div>'+'&nbsp;'+p.description+' <span class="time-show">距结束 : <span class="day-show time"></span>天<span class="hour-show time"></span>时<span class="minute-show time"></span>分<span class="second-show time"></span>秒</span></li>';
                            }else{
                                phtml+='<li data-ruleid="'+p.rule_id+'" data-remaining="'+(p.to_time-p.now)+'"><span class="label label-danger">'+p.tag+'</span>&nbsp;'+p.description+' <span class="time-show">距结束 : <span class="day-show time"></span>天<span class="hour-show time"></span>时<span class="minute-show time"></span>分<span class="second-show time"></span>秒</span></li>';
                            }

                        });
                        $('.promotion-list').append(phtml);
                        var pro_len = $('.promotion-list li').length;
                        if(pro_len!=0){
                            $('.sales-promotion-block').css('display','block');
                        }
                        $.each($('.promotion-list [data-remaining]'),function(idx,item){
                            item = $(item);
                            if(item.attr('data-remaining')>60*60*24*7){
                                $(item.find('.time-show')).remove();
                            }else{
                                remaining_time(item.attr('data-remaining'),$(item.find('.time-show')));
                            }
                        });
                        if(recv.data.sale_price && recv.data.sale_price!='null'){
                            $('<del class="text-muted">￥'+$('.price-availability-block .price strong').text()+'</del>').insertAfter($('.price-availability-block .price'));
                            $('.price-availability-block .price strong').text(recv.data.sale_price);
                        }
                    }
                }

            });
            /*$.getJSON(goods_promotions_api,function(recv){
             var phtml = '';
             if(recv.result == 'success' && recv.data){
             $.each(recv.data.plist,function(idx,p){
             phtml+='<li data-ruleid="'+p.rule_id+'" data-remaining="'+(p.to_time-p.now)+'"><span class="label label-danger">'+p.tag+'</span>&nbsp;'+p.description+' <span class="time-show"><span class="day-show"></span><span class="hour-show"></span><span class="minute-show"></span><span class="second-show"></span></span></li>';
             });
             $('.promotion-list').append(phtml);
             var pro_len = $('.promotion-list li').length;
             if(pro_len==0){
             $('.sales-promotion-block').remove();
             }
             $.each($('.promotion-list [data-remaining]'),function(idx,item){
             item = $(item);
             if(item.attr('data-remaining')>60*60*24*7){
             $(item.find('.time-show')).remove();
             }else{
             remaining_time(item.attr('data-remaining'),$(item.find('.time-show')));
             }
             });
             if(recv.data.sale_price && recv.data.sale_price!='null'){
             $('<del class="text-muted">￥'+$('.price-availability-block .price strong').text()+'</del>').insertAfter($('.price-availability-block .price'));
             $('.price-availability-block .price strong').text(recv.data.sale_price);
             }
             }
             });*/
            //库存确认openAPI
            var stock_confirm_api = "https://www.myzte.com/index.php/openapi/stock/confirm/";
            $.post(stock_confirm_api,{sku:'6902176008580'},function(recv){
                try{
                    data = recv.data;
                    if(!data || !data['6902176008580'] || data['6902176008580']['num']<1){
                        //无法确认库存,或无库存
                        //DO SOMETHING
                        $('.product-page-cart .btn').addClass('disabled');
                        $('<br><div class="alert alert-warning">无库存</div>').insertAfter($('.product-page-cart'));
                    }else{
                        var stock_num = data['6902176008580']['num'];
                        $('.product-quantity input.spinner-input').attr('data-maxbuy',stock_num);
                    }
                }catch(e){
                    //console.error(e);
                }

            },'json');

            //相关商品openAPI
            var related_api = "https://www.myzte.com/index.php/openapi/goods/related/";
            $.getJSON(related_api,{goods_id:goods_id},function(recv){
                try{
                    $.each(recv.data,function(k,v){
                        if(v.product.promotion.sale_price && v.product.promotion.sale_price!='null'){
                            v.product.buy_price = v.product.promotion.sale_price;
                        }
                        $('.goods-rel-items .row').append(substitute($('#related_tpl').val(),v));
                    });
                    if($('.goods-rel-items .row .goods-item').length){
                        $('.goods-rel-items').removeClass('hide');
                        alike_slide();
                    }
                }catch(e){
                    //console.error(e);
                }
            });
            //喜欢收藏openAPI
            var check_fav_api = "https://www.myzte.com/index.php/openapi/goods/check_fav/";
            $.getJSON(check_fav_api,{member_id:$.cookie('MEMBER_IDENT'),'goods_id':goods_id},function(recv){
                try{
                    data = recv.data;
                    if(data.is_fav && data.is_fav>0){
                        $('.favorite-button img').attr('src', '../themes/pc/zhongxing/images/heart_state2.png?vea39');
                        $('.favorite-button').addClass('disabled');
                    }
                    $('.favorite-button em').text(' ('+data.fav_count+')');

                }catch(e){
                }
            });
            $('.favorite-button').on('click',function(e){
                e.stopPropagation();
                var _this = $(this);
                $.get(_this.prop('href'),function(re){
                    if(re && re.success){
                        _this.fadeOut(function(){
                            _this.find('img').attr('src', '../themes/pc/zhongxing/images/heart_state2.png?vea39');
                            var current_count = parseInt(_this.find('em').text().replace(/[\(|\)]/g,''));
                            if(isNaN(current_count))current_count = 0;
                            _this.find('em').text(' ('+(++current_count)+')');
                        }).fadeIn(function(){
                            _this.addClass('disabled');
                        });
                    }else{
                        _this.find('small').text(re.error);

                        if(re.redirect){
                            location = re.redirect;
                        }
                    }
                },'json');
                return false;
            });

            /**
             * 切换tab
             */
            $('#pp_tabs a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
                var pane_sel =  $(e.target).attr('href');
                switch (pane_sel) {
                    case '#comment':
                        $(this).off('shown.bs.tab');
                        $(pane_sel).load('/comment-show-1909.html');
                        $(pane_sel).on('click','a',function(e){
                            e.stopPropagation();
                            //$(pane_sel).load(this.href);
                        });
                        break;
                    case '#parameter':
                        //商品规格参数openAPI
                        $(this).off('shown.bs.tab');
                        var parameter = "https://www.myzte.com/index.php/openapi/goods/parameter/";
                        var product_id = "2095";
                        $.getJSON(parameter,{product_id:product_id},function(recv){
                            if(recv.result == 'success'){
                                var para = $('.para-text').find('ul');
                                var para_html = '';
                                var extend_li = '';
                                para_html += '<li><span>商品名称: </span>'+recv.data['product']['name']+'</li>' +
                                    '<li><span>商品品牌: </span>'+recv.data['brand']['brand_name']+'</li>';
                                if(recv.data['product']['spec_info']){
                                    para_html +='<li><span>商品规格: </span>'+recv.data['product']['spec_info']+'</li>' ;
                                }
                                para_html += '<li><span>商品货号: </span>'+recv.data['product']['bn']+'</li>' +
                                    '<li><span>重量: </span>'+recv.data['product']['weight']+'</li>' +
                                    '<li><span>单位: </span>'+recv.data['product']['unit']+'</li>';
                                if(recv.data['extends']){
                                    for(var i = 0; i < recv.data['extends'].length; i++){
                                        extend_li+='<li><span>'+recv.data['extends'][i]['label']+'</span>'+recv.data['extends'][i]['value']+'</li>' ;
                                    }
                                }
                                para_html += extend_li;
                                para.html(para_html);
                            }
                        });
                        break;
                }
            })

        });
    </script>
    <!-- 商品小图上翻下翻 -->
    <script type="text/javascript">
        $(document).ready(function(){
            var num_li = $('.product-other-images li').length;
            if(num_li>=5){
                $('.pic-slide .next').on("click",function(){
                    $('.product-other-images').animate({"margin-left":"-74px"},200,function(){
                        $(this).css({"margin-left":"0px"}).find("li:first-child").appendTo(this);
                    });
                });
                $('.pic-slide .prev').on("click",function(){
                    $('.product-other-images').find("li:last-child").prependTo('.product-other-images').css({"margin-left":"-74px"}).animate({"margin-left":"0px"},200,function(){
                    });
                });
            }else{
                return;
            }
        });
    </script>
    <script charset="utf-8">
        //同类商品销量排行openAPI
        var cat_goods_list = "https://www.myzte.com/index.php/openapi/goods/cat_goods_list/";
        var cat_id = "96";
        $.getJSON(cat_goods_list,{cat_id:cat_id},function(recv){
            if(recv.result == 'success'){
                var hotsail = $('.hotsail-list');
                var html = '';
                for(var i = 0; i < recv.data.length; i++){
                    html += '<li >'+
                        '<div class="hot-goods-img"><a href="' +recv.data[i].item_url +'"><img src="' +recv.data[i].image_default_url +'"></a></div>'+
                        '<div class="hot-goods-name"><a href="' +recv.data[i].item_url +'">'+ recv.data[i].name +'</a></div>'+
                        '<div class="hot-goods-pri">￥'+ recv.data[i].price +'</div>'+
                        '</li>';
                }
                hotsail.html(html);
            }
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('.product-spec-options dd').each(function(){
                var img_len = $(this).find('img').length;
                if(img_len==0){
                    $(this).parent('.opt-inner').find('label,span.fl').css({
                        marginTop: '2px'
                    });
                    $(this).find('.ps-opt-sel').find('a,span').css({
                        width: 'auto',
                        height: '22px',
                        lineHeight:'22px',
                        padding:'0 5px'
                    });
                }
            })
        });
    </script>
    <script>
        var comment_star = 1;
    </script>
    <script>

        $(function(){
            $('#comment').on('click','.pagination a',function(e){
                var path = $(this).attr('href');
                $.get(path,{mark_star:comment_star}, function(data) {

                    $('#comment').html(data);
                });
                return false;
            })
        })
        $('.pagination').children('li').click(function(event) {
            event.preventDefault();
            alert(event.type);
            return false;
            var path = $(this).children('a').attr('src');

            $.post(path, {param1: 'value1'}, function(data, textStatus, xhr) {
                /*optional stuff to do after success */
            });
        });
    </script>
    <script type="text/javascript">

        // 验证手机号
        var _isPhoneNo = function(phone) {
            var pattern = /^1[34578]\d{9}$/;
            return pattern.test(phone);
        }
        //获得短信验证码
        var _cutdown_sms = function(btn){
            var cutdown = 120,btn_o_text = btn.text(),timer =
                setInterval((function(){
                    btn.text('短信已发送,'+(cutdown--)+'秒后可重试');
                    if(cutdown<1){
                        clearInterval(timer);
                        btn.text(btn_o_text).removeClass('disabled');
                    }
                    return arguments.callee;
                })(),1000);
        };
        $('#get_vcode').on('click',function(e){
            var btn = $(this);
            if(btn.hasClass('disabled'))return;
            if (_isPhoneNo($('#phoneNumber').val())) {
                btn.attr('disabled','true');
                $.post('/index.php/openapi/cmapi/smsCode',{mobile:$('#phoneNumber').val()},function(re){
                    if(re && re.result == 'success'){
                        _cutdown_sms(btn);
                    }else{
                        btn.removeAttr('disabled');
                        $('#error_notice').html(re.msg);
                        return false;
                    }
                },'json');
            }else{
                $('#error_notice').html('手机号码格式错误!');
                return false;
            }
        });
    </script>
    <script>
        $(function(){
            var product_id = "2095";
            $("input[name=set_meal_type_name]").each(function(){
                $(this).on('change',function(){
                    $.post('/item-get_list_by_ajax.html',{product_id:product_id,type_id:$(this).val()},function(re){
                        $('#operators').html(re);
                    });
                });
            });
        });
    </script>
    <script>
        var is_operator = $('input[name=is_operator]');
        var package_pid = $('input[name=package_pid]');
        var mobile,vcode = '';
        var verify = false;
        $('.ps-opt-sel-oprerator').on('click' , function(){
            $(this).addClass('current');
            $(this).siblings('.current').removeClass('current');
            if($(this).find('a').attr('data-id') == 1){
                is_operator.val(1);
                $('.select-operator').removeClass('hide');
                $('.btn-danger.btn-buy').hide();
            }else{
                is_operator.val(0);
                verify = false;
                $('.select-operator').addClass('hide');
                $('.btn-danger.btn-buy').show();
            }
        });

        var select_modal = $('#set_meal_modal');
        select_modal.on('click' ,'.btn-block .btn-primary' ,function(){
            mobile = select_modal.find('#phoneNumber').val();
            vcode = select_modal.find('#vcode').val();
            package_pid.val(select_modal.find('#operators').find('.selected').attr('data-id'));
            if(!select_modal.find('#agree').is(':checked')){
                $('#error_notice').html('请阅读并同意入网协议');
                return false;
            }
            //相关验证
            $.post('/index.php/openapi/cmapi/checkForm',{mobile:mobile,smsCode: vcode,numType:1},function(re){
                if(re && re.result =='success'){
                    $.post('/',{pack_pid:package_pid.val(),mobile:mobile},function(p){
                        $('#selected_info').html(p);
                    });
                    verify = true;
                    select_modal.modal('hide');
                }else{
                    $('#error_notice').html(re.msg);
                    return false;
                }
            },'json');

        }).on('click' ,'.select-package-product' ,function(){
            var package_pid = $(this).attr('data-id');
            var need_show = $('.tc-table').find('.package-info[data-id='+package_pid+']');
            $('.table-content').removeClass('hide');
            need_show.siblings('.package-info').addClass('hide');
            need_show.removeClass('hide');
        });

        $('.btn-buy').on('click' ,function(e){
            var url = $(this).attr('href');
            vas = isVas();
            if(is_operator.val() ==1){        //合约机
                e.preventDefault();
                if(!verify){
                    $('#error_notice').html('您的手机号码没有通过验证');
                    return false;
                }
                if(package_pid.val() >0){
                    if(vas) {
                        window.location.href=url+'?package_pid='+package_pid.val()+'&mobile='+mobile+'&vas='+vas;
                    }else {
                        window.location.href=url+'?package_pid='+package_pid.val()+'&mobile='+mobile;
                    }
                }else{
                    $('#error_notice').html('请选选择套餐和资费');
                }
            }
            else{
                if(vas) {
                    window.location.href = url+'?vas='+vas;
                    return false;
                }
            }
        });
        function isVas()
        {
            var vas = new Array;//中兴服务格式vas,产品id1,产品id2,...,
            $('select').each(function(i){
                if(parseInt($(this).val()) > 0){
                    vas[i] = $(this).val();
                }
            });
            if(vas.length>0){
                vas = arrToStr(vas);
                vas=vas.substring(0,vas.length-1);
                return vas;
            }else{
                return null;
            }
        }
        function arrToStr(array){
            var str = '';
            for(s in array){
                str += array[s]+',';
            }
            return str
        }
        $('.tc-type-block').click(function(event) {
            $('.tc-type-block').removeClass('selected');
            $(this).addClass('selected');
        });
        $('#operators').on('click', '.select-package-product', function(event) {
            event.preventDefault();
            $('.select-package-product').removeClass('selected');
            $(this).addClass('selected');
        });
    </script>

    <script>
        $(function(){
            var url = '/consult-search-1909.html';
            var pn = 1;
            $('.consult-block').load(url);
            $('.consult-search').on('click' ,'button' ,function(){
                var keyword = $('#keyword').val();
                if(!keyword){
                    $('.question-content').html('请输入您要咨询的关键词!');
                    $('#question_modal').modal('show');
                    return false;
                }
                $.post(url ,{'keyword' : keyword} ,function(re){
                    if(re ==''){
                        var data = {
                            'goods_id':'1909',
                            'product_id':'2095',
                            'content' :keyword
                        };
                        $.post('/consult-to_consult.html' ,data ,function(res){
                            if(res.success){
                                $('.question-content').html('您的问题已经提交，请等待回复!');
                                $('#question_modal').modal('show');
                            }else{
                                $('.question-content').html(res.error);
                                $('#question_modal').modal('show');
                            }
                        },'json');
                    }else{
                        $('.consult-block').html(re);
                    }
                });
            })
            //查看更多
            var url_path = '/index.php/openapi/goods/consult_count/goods_id/1909';
            $.post(url_path, function(re) {
                if (re != '' && re.result == 'success') {
                    $('.questions-number').html('共&nbsp;'+re.data.count+'&nbsp;个问题');
                    $('.consult-number').text(re.data.count);
                }
                if(re.data.count == 0){
                    $('.more-questions').hide('slow');
                }
            });
            $('.more-questions').click(function() {
                ++pn;
                var path = "/index.php/consult-search-1-"+ pn +".html";
                $.post(path, function(re) {

                    if(re == ''){
                        $('.question-content').html('已无更多问题!');
                        $('#question_modal').modal('show');
                        $('.more-questions').hide('slow');
                    }else{
                        $('.consult-block').append(re);
                    }
                });
            });

        });
    </script>
    <script>
        //扫码购买
        $(function(){
            $('#QR_code_buy').mouseenter(function(event) {
                if ($('.ewm-img-block').is(":animated")) {
                    event.preventDefault();
                }else{
                    $('.ewm-img-block').slideDown('400');
                }
            }).mouseleave(function(event) {
                if ($('.ewm-img-block').is(":animated")) {
                    event.preventDefault();
                }else{
                    $('.ewm-img-block').slideUp('400');
                }
            });
        })
    </script>
    <script>
        $('#comment').on('click', '.pagination a', function(event) {
            event.preventDefault();
            window.location.href = '#comment';
        });
    </script>

    <script>
        var commnet_url = '/comment-show-1909.html';
        $('body').on('change' ,'input[name="mark_star"]' ,function(e){
            comment_star = $(this).val();
            $('#comment').load('/comment-show-1909.html?mark_star='+$(this).val());
        });
    </script>
    <script>
        (function(){
            $.ajax({
                'url':'https://www.myzte.com/index.php/openapi/cpns/cpns_list?goods_id=1909',
                'success':function(re){
                    if(re.result == 'success' && re.data.length > 0){
                        $('<div class="get-coupons"><dl class="dl-horizontal" style="margin-bottom: 8px;"><label>领 优 惠 券:&nbsp;</label> &nbsp;<a href="javascript:;" style="color:red" id="get_coupons">领取优惠券>></a></dl></div>').insertAfter($('.old-new'));
                        $.each(re.data,function(idx,val){

                            var coupons_list = '';

                            if(re.data[idx].image_id != null){
                                coupons_list +='<li class="coupons-li-img">'+
                                    '<a href="'+'https://www.myzte.com/index.php/openapi/cpns/get_cpns/cpns_id/'+re.data[idx].cpns_id+'" class="coupons">'+
                                    '<img src="'+re.data[idx].image_url+'">'+
                                    '</a>'+
                                    '</li>';
                            }else{
                                coupons_list += '<li class="coupons-li">'+
                                    '<div class="coupon-outer clearfix">'+
                                    '<div class="left-block">'+
                                    '<h1>'+re.data[idx].cpns_name+'</h1>'+
                                    '<div class="coupons-desc">'+re.data[idx].description+'</div>'+
                                    '<div class="coupons-date">'+re.data[idx].from_time+'-'+re.data[idx].to_time+'</div>'+
                                    '</div>'+
                                    '<div class="right-block">'+
                                    '<a class="coupons" href="'+'https://www.myzte.com/index.php/openapi/cpns/get_cpns/cpns_id/'+re.data[idx].cpns_id+'">'+'领取</a>'+
                                    '</div>'+
                                    '</div>'+
                                    '</li>';
                            }
                            $('.coupons-list').append(coupons_list);

                        })
                    }
                }
            });

            $('body').on('click','.coupons',function(e){
                e.preventDefault();
                var $el = $(this);
                $.ajax({
                    url:$el.attr('href'),
                    cache:false,
                    success:function(re){
                        if(re.msg){
                            alert(re.msg);
                            if(re.msg == '请登陆后再领取优惠券'){
                                window.location.href = "https://www.myzte.com/index.php/passport-login.html";
                            }
                        }else{
                            alert(re.data);
                        }
                    }
                });
            });
        })();
        $(function(){
            $('body').on('click','#get_coupons',function(){
                $('.coupons-modal').modal();
            })
            //增值服务选择
            $('select').on('change',function(){
                if($(this).find('option:selected').val() != '0'){
                    $(this).addClass('active');
                }else{
                    $(this).removeClass('active');
                }
            })
        })
    </script>
</div>
<div class="footer">
    <div class="footer-inner">
        <div class="footer-top">
            <ul class="list-unstyled clearfix">
                <li class="pull-left">
                    <img src="/Public/template/images/7.png" alt="">
                    <span>7天退货保障</span>
                </li>
                <li class="pull-left">
                    <img src="/Public/template/images/30.png" alt="">
                    <span>15天换货承诺</span>
                </li>
                <li class="pull-left">
                    <img src="/Public/template/images/mian.png" alt="">
                    <span>150元起全场免运费</span>
                </li>
                <li class="pull-left">
                    <img src="/Public/template/images/position.png" alt="">
                    <span>全国售后服务点</span>
                </li>
            </ul>
        </div>
        <div class="footer-center">
            <div class="footer-plus">
                <div class="help-center">
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">关注我们</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-14.html">中兴社区</a></li><li><a href="https://www.myzte.com/help-13.html">官方微信</a></li><li><a href="https://www.myzte.com/help-12.html">新浪微博</a></li></ul></li></ul>
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">帮助中心</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-11.html">支付方式</a></li><li><a href="https://www.myzte.com/help-10.html">购物指南</a></li><li><a href="https://www.myzte.com/help-9.html">配送指南</a></li></ul></li></ul>
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">售后服务</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-8.html">退换货流程</a></li><li><a href="https://www.myzte.com/help-7.html">售后网点</a></li><li><a href="https://www.myzte.com/help-6.html">退换货政策</a></li><li><a href="https://www.myzte.com/help-5.html">保修政策</a></li></ul></li></ul>
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">关于商城</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-4.html">联系我们</a></li><li><a href="https://www.myzte.com/help-3.html">商城简介</a></li><li><a href="https://www.myzte.com/help-2.html">礼品团购</a></li></ul></li></ul>
                </div>
                <div class="call-block">
                    <div class="tell">
                        <div class="tell-number">400-880-9999</div>
                        <div class="explain">周一到周日 8:30 - 20:30 (全年无休)</div>
                    </div>
                    <div class="kefu">
                        <img src="/Public/template/images/kefu.png" alt="">
                        <a href="http://v1.live800.com/live800/chatClient/chatbox.jsp?companyID=437521&amp;configID=41175&amp;jid=9108176411" target="_Blank">在线客服</a>

                    </div>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <center>
            <ul class="list-unstyled clearfix">
                <li><a href="http://www.myzte.cn/" target="_blank">中兴社区</a></li>
                <li><a href="http://www.zte.com.cn/" target="_blank">中兴通讯</a></li>
                <li><a href="http://apps.ztems.com/" target="_blank">汇天地</a></li>
                <li><a href="http://cloud.ztedevices.com/zcloud/index.html" target="_blank">中兴云服务</a></li>
                <li><a href="http://www.ztedevice.com.cn/" target="_blank">中兴手机</a></li>
            </ul>
            </center>
            <div class="copy-right" style="text-align: center;">
                <a href="https://www.myzte.com/help-20.html" target="_blank">服务协议</a> | ©2014 - 2017 深圳市中兴智谷科技有限公司版权所有，并保留所有权利
            </div>
            <div class="copy-right" style="text-align: center;">
                增值电信业务经营许可证：粤B2-20160352 | ICP备案证书号 : <a href="http://www.miitbeian.gov.cn/" target="_blank">粤ICP备16018970号 </a>
            </div>
        </div>
    </div>
</div>
</body></html>
<?php if($_show_nav==1): ?>
<div class="footer">
    <div class="footer-inner">
        <div class="footer-top">
            <ul class="list-unstyled clearfix">
                <li class="pull-left">
                    <img src="/Public/template/images/7.png" alt="">
                    <span>7天退货保障</span>
                </li>
                <li class="pull-left">
                    <img src="/Public/template/images/30.png" alt="">
                    <span>15天换货承诺</span>
                </li>
                <li class="pull-left">
                    <img src="/Public/template/images/mian.png" alt="">
                    <span>150元起全场免运费</span>
                </li>
                <li class="pull-left">
                    <img src="/Public/template/images/position.png" alt="">
                    <span>全国售后服务点</span>
                </li>
            </ul>
        </div>
        <div class="footer-center">
            <div class="footer-plus">
                <div class="help-center">
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">关注我们</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-14.html">中兴社区</a></li><li><a href="https://www.myzte.com/help-13.html">官方微信</a></li><li><a href="https://www.myzte.com/help-12.html">新浪微博</a></li></ul></li></ul>
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">帮助中心</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-11.html">支付方式</a></li><li><a href="https://www.myzte.com/help-10.html">购物指南</a></li><li><a href="https://www.myzte.com/help-9.html">配送指南</a></li></ul></li></ul>
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">售后服务</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-8.html">退换货流程</a></li><li><a href="https://www.myzte.com/help-7.html">售后网点</a></li><li><a href="https://www.myzte.com/help-6.html">退换货政策</a></li><li><a href="https://www.myzte.com/help-5.html">保修政策</a></li></ul></li></ul>
                    <ul class="list-unstyled clearfix"><li class="help-title"><a href="javascript:;">关于商城</a></li><li class="help-list"><ul><li><a href="https://www.myzte.com/help-4.html">联系我们</a></li><li><a href="https://www.myzte.com/help-3.html">商城简介</a></li><li><a href="https://www.myzte.com/help-2.html">礼品团购</a></li></ul></li></ul>
                </div>
                <div class="call-block">
                    <div class="tell">
                        <div class="tell-number">400-880-9999</div>
                        <div class="explain">周一到周日 8:30 - 20:30 (全年无休)</div>
                    </div>
                    <div class="kefu">
                        <img src="/Public/template/images/kefu.png" alt="">
                        <a href="http://v1.live800.com/live800/chatClient/chatbox.jsp?companyID=437521&amp;configID=41175&amp;jid=9108176411" target="_Blank">在线客服</a>

                    </div>
                </div>
            </div>
        </div>
        <div class="footer-bottom">
            <center>
            <ul class="list-unstyled clearfix">
                <li><a href="http://www.myzte.cn/" target="_blank">中兴社区</a></li>
                <li><a href="http://www.zte.com.cn/" target="_blank">中兴通讯</a></li>
                <li><a href="http://apps.ztems.com/" target="_blank">汇天地</a></li>
                <li><a href="http://cloud.ztedevices.com/zcloud/index.html" target="_blank">中兴云服务</a></li>
                <li><a href="http://www.ztedevice.com.cn/" target="_blank">中兴手机</a></li>
            </ul>
            </center>
            <div class="copy-right" style="text-align: center;">
                <a href="https://www.myzte.com/help-20.html" target="_blank">服务协议</a> | ©2014 - 2017 深圳市中兴智谷科技有限公司版权所有，并保留所有权利
            </div>
            <div class="copy-right" style="text-align: center;">
                增值电信业务经营许可证：粤B2-20160352 | ICP备案证书号 : <a href="http://www.miitbeian.gov.cn/" target="_blank">粤ICP备16018970号 </a>
            </div>
        </div>
    </div>
</div>
</body></html>
<?php endif;?>
<script>
    $.ajax({
        type:'GET',
        url: "<?php echo U('Member/ajaxChkLogin');?>",
        dataType:'json',
        success:function (data) {
            if(data.login ==1){
                var li ='欢迎您,'+ data.username + '<a href="<?php echo U('Member/logout');?>">退出</a>';
                    li += '<li class=""><a href="<?php echo U('My/order');?>">我的订单</a></li>';
                $('#loginInfo').html(li);
            }else{
                var li ='您好,欢迎来到中兴!<a href="<?php echo U('Member/login');?>">登录</a> <a href="<?php echo U('Member/regist') ?>">免费注册</a>';
                    li += '<li class=""><a href="<?php echo U('My/order');?>">我的订单</a></li>';
                $('#loginInfo').html(li);
            }
        }
    })
</script>
</body>
</html>